function regSchoolFrm(){
document.getElementById('dash_data').innerHTML="";
/*		create main div		*/

			var newDiv= document.createElement("div");
			newDiv.id= "mainFrm";
			//newDiv.setAttribute("style", "background-color: #ffffff;");
			document.getElementById('dash_data').appendChild(newDiv);

/*		create main div		*/

/*		create form			*/

			var newFrm=document.createElement("form");
			newFrm.setAttribute("name","Frm1");
			newDiv.appendChild(newFrm);
			
/*		create form			*/		

/*		create table			*/

			var table = document.createElement("table");
			table.setAttribute("cellpadding", 3);
			table.setAttribute("cellspacing", 1);
			table.setAttribute("width", "100%");
			table.setAttribute("height", "100%");
			table.setAttribute("border", 0);
			newFrm.appendChild(table);
			
/*		create table			*/				
	var url="../xmlForm/schoolRegister.xml";	
	new Ajax.Request('./'+url,
	  {
	    method:'get',
	    onSuccess: function(transport){
	      var response = transport.responseXML || "none";
			if(response!="none"){
					var xmlParser = new XMLParser(response);
					var items = xmlParser.list('CDDATA');	
					for (var i = 0; i < items.length; i++) {
						/* 	create tr	*/
						var tr = document.createElement("tr");
						table.appendChild(tr);							
						var TYPEINPUT=xmlParser.get(items[i],'TYPEINPUT');
						var NAME=xmlParser.get(items[i],'NAME');						
						var ATTRIBUTE_NUM=xmlParser.get(items[i],'ATTRIBUTE_NUM');
						var LABEL=xmlParser.get(items[i],'LABEL');
						/*		create td	*/
						var td1 = document.createElement("td");
						td1.setAttribute("width", "30%");			
						td1.setAttribute("style", "padding-left:5px;");
						td1.innerHTML = LABEL;
						tr.appendChild(td1);
						var td2 = document.createElement("td");
						td2.setAttribute("width", "70%");				
						td2.setAttribute("style", "padding-left:5px;");
						tr.appendChild(td2);
						/*		create td	*/
						var inputField = document.createElement("input");
						inputField.setAttribute("type",TYPEINPUT);
						inputField.setAttribute("name",NAME);
						for(j=1;j<=ATTRIBUTE_NUM;j++){
							var ATTRIBUTE_NAME=xmlParser.get(items[i],'ATTRIBUTE_NAME'+j);
							var ATTRIBUTE_VALUE=xmlParser.get(items[i],'ATTRIBUTE_VALUE'+j);
							inputField.setAttribute(ATTRIBUTE_NAME,ATTRIBUTE_VALUE);							
						}
						td2.appendChild(inputField);
						/* 	create tr	*/
					}	
			}
	    },
	    onFailure: function(){ alert('Something went wrong...') }
	  });
}